import {request} from "@@/plugin-request/request";

/** 获取评论信息 GET /api/admin/comment/comment */
export async function getCommentSearch(params?: Admin.CommentQueryParams, options?: { [key: string]: any }) {
  return request<Admin.PageQueryVO<Admin.CommentResult>>('/api/admin/comment/comment', {
    method: 'GET',
    params:params,
    ...(options || {}),
  });
}
/** 修改商品信息 POST /api/admin/comment/update */
export async function updateComment(params:Admin.CommentResult, options?: { [key: string]: any }){
  return request<boolean>('/api/admin/comment/update',{
    method:'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data:params,
    ...(options||{}),
  })
}
/** 删除评论信息 GET /api/admin/comment/delComment/ */
export async function deleteComment(id:number,options?: { [key: string]: any }) {
  return request<boolean>('/api/admin/comment/delComment/'+id,{
    method: 'GET',
    ...(options||{}),
  })
}
